﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using FluentNHibernate;

namespace Mindfor.Web.Data.Mappings
{
	public class MailQueueMap : ClassMap<MailQueue>
	{
		public MailQueueMap()
		{
			Table("MailQueue");
			Id(m => m.Id);
			Map(m => m.ToEmail).Length(255).Not.Nullable();
			Map(m => m.ToName).Length(255).Nullable();
			Map(m => m.Subject).Length(255).Not.Nullable();
			Map(m => m.Body);
			Map(m => m.IsBodyHtml);
			Map(m => m.CreateDate);
			Map(m => m.SendDate);
		}
	}
}
